<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/client/editClient.shtml">
		<input type="hidden" class="form-control checkacc" value="${user.clientId}"
			   name="clientinfoMap.clientId" id="clientId">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">客户名</label>
					</div>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="clientinfoMap.clientLinker" id="clientLinker" value="${user.clientLinker}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户类型</label>
					<div class="col-sm-9">
						<select class="form-control" name="clientinfoMap.typeId" id="typeId">
							<c:if test="${user.typeId eq 1}">
								<option value="1" selected>供应商</option>
								<option value="2">客户</option>
								<option value="3">潜在客户</option>
							</c:if>
							<c:if test="${user.typeId eq 2}">
								<option value="1" selected>供应商</option>
								<option value="2" selected>客户</option>
								<option value="3">潜在客户</option>
							</c:if>
							<c:if test="${user.typeId eq 3}">
								<option value="1" selected>供应商</option>
								<option value="2">客户</option>
								<option value="3" selected>潜在客户</option>
							</c:if>

						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">公司名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientComName"
							   id="clientComName" value="${user.clientComName}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">公司传真</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clentFax"
							   id="clentFax" value="${user.clentFax}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">职位</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientPosition"
							   id="clientPosition" value="${user.clientPosition}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">邮箱</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientMail"
							   id="clientMail" value="${user.clientMail}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">QQ</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientQQ"
							   id="clientQQ" value="${user.clientQQ}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">行业</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientIndustry"
							   id="clientIndustry" value="${user.clientIndustry}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">公司地址</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clentAddr"
							   id="clentAddr" value="${user.clentAddr}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">手机</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clientTelep"
							   id="clientTelep" value="${user.clientTelep}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">联系电话</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="clientinfoMap.clentTel"
							   id="clentTel" value="${user.clentTel}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<footer class="panel-footer text-right bg-light lter">
					<button type="submit" class="btn btn-success btn-s-xs">提交</button>
				</footer>
		</section>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>